//
//  main.cpp
//  myhttpserver
//
//  Created by tgy on 2018/3/16.
//  Copyright © 2018年 tgy. All rights reserved.
//

#include <iostream>
#include "Httpserver.hpp"
#include <unistd.h>
#include "Utils.hpp"
int main(int argc, const char * argv[]) {
    
    //日志文件
    if (!Utils::logFile("/Users/tgy/Documents/shell/myhttpserver/myhttpserver/myhttpserver/log.txt")) {
        
        return -1;
    }
    
    Httpserver httpserver;
    
    httpserver.start(8000);
    
    httpserver.run();
    
    return 0;
}
